package Bean;

import java.lang.reflect.Constructor;
import java.lang.reflect.Method;

/**
 * @Author czl
 * @Date 2024-03-27
 */
public class MainTest {
    public static void main(String[] args) throws Exception {
       BeanUtil beanUtil = new BeanUtil();

       BeanUtil.setProperty(beanUtil,"name","张三");
       BeanUtil.setProperty(beanUtil,"age",19);
       BeanUtil.setProperty(beanUtil,"weight",190.0);


        Object name = BeanUtil.getProperty(beanUtil, "name");
        Object age = BeanUtil.getProperty(beanUtil, "age");
        Object weight = BeanUtil.getProperty(beanUtil, "weight");

        System.out.println("姓名：" + name);
        System.out.println("年龄：" + age);
        System.out.println("体重：" + weight);

    }
}
